<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>导航栏</title>
    <style>
        a {
            display: inline-block;
            width: 120px;
            height: 50px;
            color: white;
            text-align: center;
            line-height: 50px;
            background-color: pink;
            text-decoration: none;
            font-weight: 700;

        }

        a:hover {
            background-color: orange;
            color: #333;
            font-weight: 700;
        }
    </style>
</head>

<body>
    <a href="#">
        <div>新闻</div>
    </a>
    <a href="#">
        <div>体育</div>
    </a>
    <a href="#">
        <div>汽车</div>
    </a>
    <a href="#">
        <div>娱乐</div>
    </a>
</body>

</html>